package designPattern.Decorator;

/**
 * @author jiangwz
 * @create 2021/3/8.
 */
public class PearlDecorator extends Decroator {

    public PearlDecorator(Drink drink) {
        super(drink);
    }


    @Override
    public float cost() {
        return super.cost() + 1f;
    }

    @Override
    public String desc() {
        return super.desc() + "+珍珠粒";
    }
}
